home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 July / EnigmA AMIGA RUN 20 (1997)(G.R. Edizioni)(IT)[!][issue 1997-07 & 08][EAR-CD IV].iso / earcd / text / misc / nroff.lha / nroff / tmac.an < prev    next >
Text File  |  1997-01-24  |  8KB  |  326 lines

  1. .\" set this non-zero to turn on debugging
  2. .nr Z 0
  3. .\" **************************************************************************
  4. .\"
  5. .\" -man package for nroff. not quite unix(tm), but adequate/working...
  6. .\"
  7. .\" usage: nroff -man file [...]
  8. .\"
  9. .\" included here are: TH, Th, SH, SS, IP, PP, LP, RS, RP, RE, I, B
  10. .\" 
  11. .\" v1.10 7/22/90 rosenkra@convex.com (Bill Rosenkranz)
  12. .\" freely distributable (no copyright, etc.)
  13. .\" 
  14. .\" **************************************************************************
  15. .\"
  16. .\" some perdefined strings (quotes, etc)
  17. .\"
  18. .ds S s
  19. .ds ` "`
  20. .ds ' "'
  21. .ds lq ""
  22. .ds rq ""
  23. .\"
  24. .\" these are various predefined date and time strings
  25. .\"
  26. .\" DW day-of-week:
  27. .if \n(dw=1  .ds DW "Sun
  28. .if \n(dw=2  .ds DW "Mon
  29. .if \n(dw=3  .ds DW "Tue
  30. .if \n(dw=4  .ds DW "Wed
  31. .if \n(dw=5  .ds DW "Thu
  32. .if \n(dw=6  .ds DW "Fri
  33. .if \n(dw=7  .ds DW "Sat
  34. .\" Dy month day:
  35. .if \n(mo=1  .ds Dy "Jan \n(dy
  36. .if \n(mo=2  .ds Dy "Feb \n(dy
  37. .if \n(mo=3  .ds Dy "Mar \n(dy
  38. .if \n(mo=4  .ds Dy "Apr \n(dy
  39. .if \n(mo=5  .ds Dy "May \n(dy
  40. .if \n(mo=6  .ds Dy "Jun \n(dy
  41. .if \n(mo=7  .ds Dy "Jul \n(dy
  42. .if \n(mo=8  .ds Dy "Aug \n(dy
  43. .if \n(mo=9  .ds Dy "Sep \n(dy
  44. .if \n(mo=10 .ds Dy "Oct \n(dy
  45. .if \n(mo=11 .ds Dy "Nov \n(dy
  46. .if \n(mo=12 .ds Dy "Dec \n(dy
  47. .ds Da "\n(hh:\n(mm:\n(ss \n(mo/\n(dy/\n(yr
  48. .ds Yr "19\n(yr
  49. .ds DY "\*(Dy, \*(Yr
  50. .ds TM "\n(hh:\n(mm:\n(ss
  51. .ds DA "\*(TM \*(DY
  52. .ds CT "\*(DW \*(Dy \*(TM 19\n(yr
  53. .\"
  54. .\" they look like this:
  55. .\"
  56. .\"    DW    Sun
  57. .\"     Dy    Mar 4
  58. .\"     DY    Mar 4, 1990
  59. .\"    Yr    1990
  60. .\"     TM    16:34:00
  61. .\"     DA    16:34:00 Mar 4, 1990
  62. .\"    Da    16:34:00 2/4/90
  63. .\"     CT    Sun Mar 4 16:34:00 1990        like ctime(2)
  64. .\"
  65. .\" **************************************************************************
  66. .\"
  67. .\" startup stuff...
  68. .\"
  69. .\" X is number register used internally here. it is initially 0. it gets
  70. .\" set to 1 in TH if ONLINE is set. it is used in the EX macro to force
  71. .\" an immediate exit at the end.
  72. .\"
  73. .in 0.0i
  74. .po 0.0i
  75. .lt 7.2i
  76. .ll 7.2i
  77. .m1 3
  78. .m2 3
  79. .m3 3
  80. .m4 3
  81. .nr X 0
  82. .\"
  83. .\" **************************************************************************
  84. .\"
  85. .\" MACROS...
  86. .\"
  87. .\" ----------------------------------------------------------------------- TH
  88. .\" main page heading
  89. .\"
  90. .\" fields are usually: 1-name, 2-section, 3-section name, 4-version, 5-date
  91. .\" 1,2,3 are on header, 4,5 and page on footer. empty strings are skipped
  92. .\" by making the arg "". this must be first! there is an extra field at the
  93. .\" end ($6) which, if "ONLINE", prints the page without page breaks (i.e.
  94. .\" headers/footers).
  95. .\" 
  96. .\"    $1   $2                  $3
  97. .\"      |    |                   |
  98. .\"      v    v                   v
  99. .\"    NAME (1)               Section                 NAME (1)
  100. .\"    ...
  101. .\"    Version                 Date                     Page n
  102. .\"        ^                      ^
  103. .\"        |                      |
  104. .\"      $4                     $5
  105. .\"
  106. .\"    .TH NAME 1 "Commands" "Version 1.0" "7 March 1990" ["ONLINE"]
  107. .\"
  108. .\" there is an extension here: if the 6th argument is "ONLINE" then the
  109. .\" resultant output does not have any headers/footers. this is useful for
  110. .\" making manpages for online use.
  111. .\"
  112. .de TH
  113. .\" define Se as default chapter name based on input chapter number
  114. .if $2=0 .ds Se "General Information
  115. .if $2=1 .ds Se "Commands and Applications
  116. .if $2=2 .ds Se "System Calls
  117. .if $2=3 .ds Se "Library Calls
  118. .if $2=4 .ds Se "Hardware and Special Files
  119. .if $2=5 .ds Se "File Formats
  120. .if $2=6 .ds Se "Games
  121. .if $2=7 .ds Se "Miscellaneous
  122. .if $2=8 .ds Se "Administation Commands
  123. .\" if the 6th arg is "ONLINE", set up for online docs output (no head/foot)
  124. .if !"$6"ONLINE" .pl 66
  125. .if  "$6"ONLINE" .m1 0
  126. .if  "$6"ONLINE" .m2 0
  127. .if  "$6"ONLINE" .m3 0
  128. .if  "$6"ONLINE" .m4 0
  129. .if !"$6"ONLINE" .tl |$1 ($2)|$3|$1 ($2)|
  130. .if !"$6"ONLINE" .if "$3"" .tl |$1 ($2)|\*(Se|$1 ($2)|
  131. .if !"$6"ONLINE" .fo |$4|$5|Page %|
  132. .if !"$6"ONLINE" .if "$4"" .fo |\*(CT|$5|Page %|
  133. .\" this is used by macro EX (exit)
  134. .if "$6"ONLINE" .nr X 1
  135. .\" change to 0.5i for "normal" nroff output...
  136. .in 0.8i
  137. ..
  138. .\" ----------------------------------------------------------------------- Th
  139. .\" alternate main page heading
  140. .\"
  141. .\" this prints no header/footer so it is good for creating online docs
  142. .\" for man(1). it ignores all args.
  143. .\"
  144. .\"    .Th NAME 1
  145. .\"
  146. .de Th
  147. .m1 0
  148. .m2 0
  149. .m3 0
  150. .m4 0
  151. .\" change to 0.5i for "normal" nroff output...
  152. .in 0.8i
  153. .nr X 1
  154. ..
  155. .\" ----------------------------------------------------------------------- EX
  156. .\" exit NOW! (no extra space at end of document)
  157. .\"
  158. .de EX
  159. .if \nX=1 .sp
  160. .if \nX=1 .ex
  161. ..
  162. .\" ----------------------------------------------------------------------- RS
  163. .\" start relative indent
  164. .\"
  165. .de RS
  166. .br
  167. .\" change to 0.5i for "normal" nroff output...
  168. .in +0.8i
  169. ..
  170. .\" ----------------------------------------------------------------------- RE
  171. .\" end relative indent
  172. .\"
  173. .de RE
  174. .br
  175. .\" change to 0.5i for "normal" nroff output...
  176. .in -0.8i
  177. ..
  178. .\" ----------------------------------------------------------------------- IP
  179. .\" indented paragraph with tag (from this line)
  180. .\"
  181. .de IP
  182. .br
  183. .sp 1
  184. .\" change to 0.5i for "normal" nroff output...
  185. .in 0.8i
  186. \&$1 $2 $3 $4 $5 $6 $7 $8 $9
  187. .br
  188. .\" change to 0.5i for "normal" nroff output...
  189. .in +0.8i
  190. ..
  191. .\" ----------------------------------------------------------------------- HP
  192. .\" indented paragraph without tag (from this line)
  193. .\"
  194. .de HP
  195. .br
  196. .sp 1
  197. .\" change to 0.5i for "normal" nroff output...
  198. .in 0.8i
  199. .in +0.8i
  200. ..
  201. .\" ----------------------------------------------------------------------- RP
  202. .\" relative indented paragraph with tag. MUST end with .RE
  203. .\"
  204. .de RP
  205. .br
  206. .sp 1
  207. .\".if !\\n(.i>8 .in 0.8i
  208. \&$1 $2 $3 $4 $5 $6 $7 $8 $9
  209. .br
  210. .\" change to 0.5i for "normal" nroff output...
  211. .in +0.8i
  212. ..
  213. .\" ----------------------------------------------------------------------- pp
  214. .\" start a new indented paragraph
  215. .\"
  216. .de pp
  217. .sp 1
  218. .\" change to 0.5i for "normal" nroff output...
  219. .in 0.8i
  220. .ti +0.8i
  221. ..
  222. .\" ----------------------------------------------------------------------- PP
  223. .\" start a new unindented paragraph
  224. .\"
  225. .de PP
  226. .sp 1
  227. .\" change to 0.5i for "normal" nroff output...
  228. .in 0.8i
  229. ..
  230. .\" ----------------------------------------------------------------------- LP
  231. .\" start a new unindented paragraph (same as PP)
  232. .\"
  233. .de LP
  234. .sp 1
  235. .\" change to 0.5i for "normal" nroff output...
  236. .in 0.8i
  237. ..
  238. .\" ----------------------------------------------------------------------- SH
  239. .\" main section heading
  240. .\"
  241. .de SH
  242. .sp 1
  243. .ne 3
  244. .\" change to 0.5i for "normal" nroff output...
  245. .in 0.8i
  246. .ti -0.8i
  247. .\".bo
  248. \&$1 $2 $3 $4 $5 $6 $7 $8 $9
  249. .br
  250. ..
  251. .\" ----------------------------------------------------------------------- SS
  252. .\" subsection heading, same indent
  253. .\"
  254. .de SS
  255. .sp 1
  256. .ne 3
  257. .\" change to 0.5i for "normal" nroff output...
  258. .in 0.8i
  259. .\".bo
  260. \&$1 $2 $3 $4 $5 $6 $7 $8 $9
  261. .sp
  262. ..
  263. .\" ----------------------------------------------------------------------- I
  264. .\" italic text (must handle at least 2 args)
  265. .\"
  266. .de I
  267. \&\fI$1\fR$2
  268. ..
  269. .\" ----------------------------------------------------------------------- B
  270. .\" bold text (must handle at least 2 args)
  271. .\"
  272. .de B
  273. \&\fB$1\fR$2
  274. ..
  275. .\" ----------------------------------------------------------------------- R
  276. .\" Roman text
  277. .\"
  278. .de R
  279. \&\fR$1$2
  280. ..
  281. .\" ----------------------------------------------------------------------- IR
  282. .\" alternate italic and Roman text (must handle at least 6 args)
  283. .\"
  284. .de IR
  285. \&\fI$1\fR$2\fI$3\fR$4\fI$5\fR$6
  286. ..
  287. .\" ----------------------------------------------------------------------- RI
  288. .\" alternate Roman and italic text (must handle at least 6 args)
  289. .\"
  290. .de RI
  291. \&\fR$1\fI$2\fR$3\fI$4\fR$5\fI$6\fR
  292. ..
  293. .\" ----------------------------------------------------------------------- BR
  294. .\" alternate bold and Roman text (must handle at least 6 args)
  295. .\"
  296. .de BR
  297. \&\fB$1\fR$2\fB$3\fR$4\fB$5\fR$6
  298. ..
  299. .\" ----------------------------------------------------------------------- RB
  300. .\" alternate Roman and bold text (must handle at least 6 args)
  301. .\"
  302. .de RB
  303. \&\fR$1\fB$2\fR$3\fB$4\fR$5\fB$6\fR
  304. ..
  305. .\" ----------------------------------------------------------------------- SM
  306. .\" small text
  307. .\"
  308. .de SM
  309. \&\fB$1\fR
  310. ..
  311. .\" ----------------------------------------------------------------------- IX
  312. .\" make index entry (ignored by this nroff...)
  313. .\"
  314. .de IX
  315. ..
  316. .\" ----------------------------------------------------------------------- }D
  317. .\" debug. use (e.g. print current indent):
  318. .\"
  319. .\"    .}D .br
  320. .\"    .}D "** DEBUG ** before RS \n(.i"
  321. .\"
  322. .de }D
  323. .if \nZ>0 \&$1
  324. ..
  325.  
  326.